const commonConfig = require('./webpack.common')
const { DefinePlugin } = require("webpack");
const { merge } = require("webpack-merge");
module.exports = merge(commonConfig, {
  mode: "development",
  plugins: [
    new DefinePlugin({
      BASE_URL: "/public/"
    })
  ],
  module: {
    rules:[
      {
        test: /\.css$/,
        use: [ 'style-loader', 'css-loader' ]
      },
      {
        test: /\.less$/,
        use: ["style-loader","css-loader", "less-loader"]
      }
    ]
  }
});
